using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN KieuHuongTroCapService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: KieuHuongTroCapService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class KieuHuongTroCapService : IKieuHuongTroCapService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: KieuHuongTroCap_ID</para>
		/// <para>Output: KieuHuongTroCapEntity</para>
		///</summary>
		public KieuHuongTroCapEntity SelectOne(int KieuHuongTroCap_ID){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.SelectOne(KieuHuongTroCap_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KieuHuongTroCapEntity</para>
		///</summary>
		public List<KieuHuongTroCapEntity> SelectAll(){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KieuHuongTroCapEntity</para>
		///</summary>
		public List<KieuHuongTroCapEntity> SelectAllFilter(string strFilter){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: KieuHuongTroCapEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(KieuHuongTroCapEntity o){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: KieuHuongTroCapEntity</para>
		/// <para>Output: KieuHuongTroCapEntity</para>
		///</summary>
		public KieuHuongTroCapEntity SaveRet(KieuHuongTroCapEntity o){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of KieuHuongTroCapEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<KieuHuongTroCapEntity> list){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of KieuHuongTroCapEntity</para>
		/// <para>Output: List of KieuHuongTroCapEntity</para>
		///</summary>
		public List<KieuHuongTroCapEntity> SaveListRet(List<KieuHuongTroCapEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: KieuHuongTroCapEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(KieuHuongTroCapEntity o){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of KieuHuongTroCapEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<KieuHuongTroCapEntity> list){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateLoaiDoiTuongTroCap_ID</para>
		/// <para>Input: NewLoaiDoiTuongTroCap_ID,KieuHuongTroCap_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiDoiTuongTroCap_ID(int NewLoaiDoiTuongTroCap_ID,int KieuHuongTroCap_ID){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.UpdateLoaiDoiTuongTroCap_ID(NewLoaiDoiTuongTroCap_ID,KieuHuongTroCap_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateKhoanTien_ID</para>
		/// <para>Input: NewKhoanTien_ID,KieuHuongTroCap_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateKhoanTien_ID(int NewKhoanTien_ID,int KieuHuongTroCap_ID){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.UpdateKhoanTien_ID(NewKhoanTien_ID,KieuHuongTroCap_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMucTroCap</para>
		/// <para>Input: NewMucTroCap,KieuHuongTroCap_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMucTroCap(Decimal NewMucTroCap,int KieuHuongTroCap_ID){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.UpdateMucTroCap(NewMucTroCap,KieuHuongTroCap_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateKieuTroCap</para>
		/// <para>Input: NewKieuTroCap,KieuHuongTroCap_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateKieuTroCap(Byte NewKieuTroCap,int KieuHuongTroCap_ID){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.UpdateKieuTroCap(NewKieuTroCap,KieuHuongTroCap_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: KieuHuongTroCapEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(KieuHuongTroCapEntity o){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: KieuHuongTroCap_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int KieuHuongTroCap_ID){
			KieuHuongTroCapDAO dao = new KieuHuongTroCapDAO();
			return dao.DeleteByID(KieuHuongTroCap_ID);
		}
		#endregion

		#region Select join to KhoanTienLoaiDoiTuongTroCap functions
		#endregion

		#region Select join to KhoanTien functions
		#endregion

		#region Select join to LoaiDoiTuongTroCap functions
		#endregion

		#region Select,delete by KieuHuongTroCap_ID functions
		#endregion

		#region Select,delete by LoaiDoiTuongTroCap_ID functions
		#endregion

		#region Select,delete by KhoanTien_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END KieuHuongTroCapWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

